package dto;

/**
 * @author:Teacher黄
 * @date:Created at 2020/01/01
 */
public class Reponse {

    public static TransData ok(String msg,Object data){
        return new TransData(200,msg,data);
    }

    public static TransData ok(String msg){
        return new TransData(200,msg);
    }

    public static TransData error(Integer code, String msg){
        return new TransData(code,msg);
    }

}
